<%--
  Created by IntelliJ IDEA.
  User: 若兮
  Date: 2021/12/28
  Time: 10:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加部门页面</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="layui/css/layui.css">
</head>
<body class="layui-anim layui-anim-downbit">
<form class="layui-form" action="${pageContext.request.contextPath}/addDept" method="post">
    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">部门编号</label>
        <div class="layui-input-inline">
            <input type="number" name="dno" required maxlength="10" lay-verify="required" placeholder="请输入部门编号" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">部门名称</label>
        <div class="layui-input-inline">
            <input type="text" name="dName" required minlength="2" maxlength="10" lay-verify="required" placeholder="请输入部门名称" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">部门电话</label>
        <div class="layui-input-inline">
            <input type="tel" name="tel" required lay-verify="required" placeholder="请输入部门电话" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label" style="width: 90px">办公地点</label>
        <div class="layui-input-inline">
            <input type="text" name="dPlace" required lay-verify="required" placeholder="请输入办公地点" autocomplete="off"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-form-item">
            <button class="layui-btn" lay-submit lay-filter="formDemo" style="margin-left: 20px;margin-top: 10px">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary" style="margin-top: 10px">重置</button>
            <a class="layui-btn" href="${pageContext.request.contextPath}/showAllDeptByPage" style="margin-top: 10px;text-decoration: none">返回</a>
        </div>
    </div>
</form>
<script type="text/javascript" src="js/jquery-3.6.0.js"></script>
<script type="text/javascript" src="layui/layui.js"></script>
</body>
</html>
